import request from '/@/utils/request';

/**
 * @method getUser 用户列表相关
 */
export function getUser() {
	return {
		getAllUser: (data: object) => {
			return request({
				url: '/api/user/getAllUser',
				method: 'post',
				data,
			});
		},
		addUser: (data: object) => {
			return request({
				url: '/api/user/addUser',
				method: 'post',
				data,
			});
		},
		delUser: (data: object) => {
			return request({
				url: '/api/user/delUser',
				method: 'post',
				data,
			});
		},
		rePass: (data: object) => {
			return request({
				url: '/api/user/rePass',
				method: 'post',
				data,
			});
		},
	};
}
